from django.conf.urls import url
from cart import views


urlpatterns = [

    #添加购物车 http://127.0.0.1:8001/cart/add
    url(r'^add$',views.AddCartView.as_view(),name='add'),

    #展示购物车数据 http://127.0.0.1:8001/cart/
    url(r'^$',views.CartInfoView.as_view(),name='info'),

    #更新购物车中数据　＋－手动输入
    url(r'^update$',views.UpdateCartView.as_view(),name='update'),

    #删除购物车
    url(r'^delete$',views.DeleteCartView.as_view(),name='delete')

]